package com.ece.beans.users;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="ADRESSE")
public class Adresse implements java.io.Serializable {

	@Id
	@Column(name="ADRESSE_LIB")
	private String libelle;
	@Column(name="ADRESSE_ZIP")
	private String zipCode;
	@Column(name="ADRESSE_VILLE")
	private String ville;
	@Column(name="ADRESSE_PAYS")
	private String pays;
	@ManyToOne
	@JoinColumn(name="ADRESSE_UTILISATEUR")
	private Utilisateur utilisateur;

	public Adresse() {

	}

	public Adresse(String libelle, String zip, String ville, String pays) {
		this.libelle = libelle;
		this.zipCode = zip;
		this.ville = ville;
		this.pays = pays;
	}

	public String getLibelle() {
		return libelle;
	}

	public String getZipCode() {
		return zipCode;
	}

	public String getVille() {
		return ville;
	}

	public String getPays() {
		return pays;
	}

	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public void setVille(String ville) {
		this.ville = ville;
	}

	public void setPays(String pays) {
		this.pays = pays;
	}
}
